package research.domain;

import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class Formula extends Entity {
	private String name;
	private String description;
	private Set<ComponentValue> componentValues;
	private Set<Sample> samples;

	public Formula() {
		super(EntityType.Formula);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set<ComponentValue> getComponentValues() {
		return componentValues;
	}

	public void setComponentValues(Set<ComponentValue> component_values) {
		this.componentValues = component_values;
	}

	public Set<Sample> getSamples() {
		return samples;
	}

	public void setSamples(Set<Sample> samples) {
		this.samples = samples;
	}

	public static Formula getNew() {
		Formula form = new Formula();
		form.setName("");
		form.setDescription("");
		return form;		
	}

}
